#include<stdio.h>
#define DOSS(a,b)  (rand()%((b)-(a)+1)+(a))
int main() {
    int START=1,END=1000,TIMES=10;
    int answer,user;
    srand(time(NULL));
    answer=DOSS(START,END);

    int left=START,right=END;
    int i;
    for(i=0; i<TIMES; i++) {
        // scanf("%d",&user);
        user=(left+right)/2;
        printf("my guess is %d\n",user);
        if(user==answer) {
            puts("Congratulations!");
            break;
        } else if(user>answer) {
            puts("Too bigger.");
            right=user-1;
        } else {
            puts("Too smaller");
            left=user+1;
        }
    }
    return 0;
}
